#include "MTIM_HAL_QG.h"

void vfnMTIM_ClockSelect (uint8 u8clock)
{
    MTIMCLK_CLKS = u8clock;
}

void vfnMTIM_PrescalerSelect (uint8 u8prescaler)
{
    MTIMCLK_PS = u8prescaler;
}

void vfnMTIM_SetModulo (uint8 u8modulo)
{
    MTIMMOD = u8modulo;
}

void vfnMTIM_Reset (void)
{
    MTIMSC_TRST = 1;
}

uint8 u8MTIM_CheckOvFlag (void)
{
    return MTIMSC_TOF;
}

void vfnMTIM_InterruptEnable (uint8 u8interrupt)
{
    MTIMSC_TOIE = u8interrupt;
}

void vfnMTIM_SetStatus (uint8 u8status)
{
    MTIMSC_TSTP = u8status;
}


